package com.ruoyi.pcj.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mashuai.utils.toolkit.core.msHandlebean.MsHandleDataUtils;
import com.mashuai.utils.toolkit.core.msMp.MsDb;
import com.ruoyi.basis.service.MsBaseServiceImpl;
import com.ruoyi.basis.utils.mp.MpConditionUtils;
import com.ruoyi.basis.utils.mp.MpPageUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.pcj.domain.PcjAble;
import com.ruoyi.pcj.domain.PcjMsgNotice;
import com.ruoyi.pcj.mapper.PcjAbleMapper;
import com.ruoyi.pcj.mapper.PcjMsgNoticeMapper;
import com.ruoyi.pcj.service.IPcMsgNoticeService;
import com.ruoyi.pcj.service.IPcjAbleService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 擅长配置Service业务层处理
 *
 * @author ms
 * @date 2024-03-11
 */
@Service
public class PcjMsgNoticeImpl extends MsBaseServiceImpl<PcjMsgNoticeMapper, PcjMsgNotice> implements IPcMsgNoticeService {


    @Override
    public List<PcjMsgNotice> getMsgNoticeData() {
        Long userId = SecurityUtils.getUserId();
        LambdaQueryWrapper<PcjMsgNotice> qw = Wrappers.lambdaQuery();
        qw.eq(PcjMsgNotice::getNoticeUserId,userId);
        List<PcjMsgNotice> list = baseMapper.selectList(qw);
        return list;
    }
}
